#include <iostream>
#include <string.h>
#include<compl.h>
using namespace std;

int main()
{
   double a, b;
   double c, d;
   int c1, c2;


cout<< "Enter Re1: ";
       cin>> a;

cout<< "Enter Im1: ";
       cin>> b;

cout<< "Enter Re2: ";
       cin>> c;

cout<< "Enter Im2: ";
       cin>> d;

Compl x1(a, b), x2(c, d);
Compl x3=x1-x2;

if(x1.Im>0)
{
cout<<"1-st Number:"<<x1.Re<<"+"<<"i"<<x1.Im<<"\n";
}
else
{
cout<<"1-st Number:"<<x1.Re<<"-"<<"i"<<-x1.Im<<"\n";
}

if(x2.Im>0)
{
cout<<"2-nd Number:"<<x2.Re<<"+"<<"i"<<x2.Im<<"\n";
}
else
{
cout<<"1-nd Number:"<<x2.Re<<"-"<<"i"<<-x2.Im<<"\n";
}



if(x3.Im>0)
{
cout<<"Difference:"<<x3.Re<<"+"<<"i"<<x3.Im<<"\n";
}
else
{
cout<<"Difference:"<<x3.Re<<"-"<<"i"<<-x3.Im<<"\n";
}

 return 0;
}

